<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小米模块案例</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .main {
            width: 1226px;
            height: 615px;
            margin: 100px auto;
        }

        .main .left {
            width: 234px;
            height: 615px;
            background-color: #800080;
            float: left;
        }

        .main .right {
            width: 978px;
            height: 615px;
            float: right;
        }

        .main .item {
            width: 234px;
            height: 300px;
            float: left;
            background-color: #87ceeb;
            margin-right: 14px;
            margin-bottom: 14px;

        }

        .item:nth-child(n+5) {
            margin-bottom: 0;
        }

        .item:nth-child(4n) {
            /* background-color: red; */
            margin-right: 0;
        }
    </style>
</head>

<body>
    <div class="main">
        <div class="left"></div>
        <div class="right">
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
        </div>
    </div>
</body>

</html>